import { createRouter, createWebHashHistory } from 'vue-router'
import LoginView from '@/views/heros/LoginView.vue'

const routes = [
  // {
  //   path: '/',
  //   name: 'home',
  //   component: HomeView
  // },
  // {
  //   path: '/about',
  //   name: 'about',
  //   // route level code-splitting
  //   // this generates a separate chunk (about.[hash].js) for this route
  //   // which is lazy-loaded when the route is visited.
  //   component: () => import(/* webpackChunkName: "about" */ '../views/AboutView.vue')
  // },
  {
    path:'/login',
    name:'login',
    component:LoginView
  },{
    path:'/',
    redirect:'/login'
  },{
    path:'/form',
    name:'form',
    component:()=>import('../views/heros/FormView.vue')
  },
  {
    path:'/signIn',
    name:'signIn',
    component:()=>import('../views/heros/SignInView.vue')
  },
  {
    path:"/primaryPage",
    name:"primaryPage",
    component:()=>import('../views/heros/PrimaryPageView.vue')
  }
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
